<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索</title>
</head>
<body>
    <h1>搜索界面</h1>
    <hr>
    <form method="post" action="/search/">
        {% csrf_token %}
        <input type="text" name="medicine" placeholder="请输入药材名">
        <input type="submit" value="搜索1">
        <span style="color:red">{{err_msg}}</span>
    </form>
    <hr>
    <form method="get" action="/search_1/">
        {% csrf_token %}
        <input type="text" name="node_name" placeholder="请输入要搜索的条目">
        <br>
        <div>
            <h3>选择搜索方式</h3>
        <input type="radio" name="selectMode" id="mode1" value="0" checked>
        <label for="mode1">精确搜索</label>
        <input type="radio" name="selectMode" id="mode2" value="1">
        <label for="mode2">模糊搜索</label>
        </div>
        <br>

        <div>
            <h3>选择搜索类别</h3>
        <input type="radio"" name="selectType" id="type1" value="中药材" checked>
        <label for="type1">中药材</label>
        <input type="radio" name="selectType" id="type2" value="中药组方">
        <label for="type2">中药组方</label>
        <input type="radio" name="selectType" id="type3" value="化合物">
        <label for="type3">化合物</label>
        </div>
        <br>
        <input type="submit" value="搜索2">
        <span style="color:red">{{err_msg}}</span>
    </form>

</body>
</html>